//
//  JSONParser.m
//  UI12_01_UITableView自定义cell
//
//  Created by dllo on 16/3/24.
//  Copyright © 2016年 XWH. All rights reserved.
//

#import "JSONParser.h"

@implementation JSONParser

+(id)JSONParserWithFileName:(NSString *)name type:(NSString *)type{
    
    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:type];
    
    NSData *data = [NSData dataWithContentsOfFile:path];
    
    id result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    return result;
    
    
}

@end
